<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:91:"C:\Users\Lenovo\Desktop\www\FlashCashMange\public/../application/home\view\index\index.html";i:1511762004;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>ETCP数据平台</title>
	<link rel="icon" href="__PUBLIC__/home/img/favicon.ico"  type="image/x-icon" />
	<link rel="stylesheet" href="__PUBLIC__/home/boostrap/css/bootstrap.min.css">
	<link rel="stylesheet" href="__PUBLIC__/home/awesome/css/font-awesome.min.css">
	<link rel="stylesheet" href="__PUBLIC__/home/css/login.css">
	<script src="__PUBLIC__/home/js/jquery.min.js"></script>
	<script src="__PUBLIC__/layer/layer.js"></script>
</head>
<body>
<h2 id="header">
	<img src="__PUBLIC__/home/img/logo.png" alt="">
</h2>
<div id="body">
	<div id="login">
		<form  action="javascript:;" method="post" role="form" style="padding: 10px 20px;opacity: 1;color: black">
			<legend style="margin-top: 20px;padding-left: 50px">SINGN</legend>
			<div class="form-group">
				<label for="" >用户名</label>
				<input type="text" class="form-control" name="username" placeholder="请输入用户名">
			</div>
			<div class="form-group">
				<label for="" >密码</label>
				<input type="password" class="form-control" name="password" placeholder="请输入密码">
			</div>
			<div class="form-group">
				<input type="text" class="form-control" style="width: 200px;float: left" name="code" id="" placeholder="请输入验证码">
				<img style="width: 150px;height: 35px;margin-left: 5px" src="<?php echo captcha_src(); ?>" onclick="this.src=this.src+'?'" alt="">
			</div>
			<button type="submit" class="btn btn-primary">登录</button>
		</form>
	</div>
</div>
<footer>
	<p>
		© 2017 上海衡方信息技术有限公司版权所有 京ICP备12034557号
	</p>
</footer>
</body>
<script>
	$(function(){
		$('button').click(function(){
			var data=$('form').serialize();
			$.post("<?php echo url('home/index/index'); ?>",data,function(res){
               if(res.valid==1){
				   location.href="<?php echo url('home/User/userList'); ?>";
			   }else{
				   layer.msg(res.msg, function(){

				   });
			   }
			});
			return false;
		})

	})
</script>
</html>